<%@ page language="java" pageEncoding="UTF-8"%>  
<%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE html>  
<html>  
<head>  
<base href="<%=basePath%>">  
</head>  
<body>  
 	<h1>测试如特殊格式的传输参数 userName-loginName-sex-age to User object</h1>
 	<form action= "<%=path%>/sysmanage/test/testSpecialFormatter.do" method = "post">
 		<input type ="text" name = "specialFormatter">
 		<h2><input type = "submit" value = "提交"></h2>	
 	</form>
  
    <h1>测试时间格式的输入</h1>
	<form action="<%=path%>/sysmanage/test/testDateFormatter.do" method = "post" >
	 	<input type = "hidden" name = "userId" id ="userId">
	 	<h2>用户名称:<input type = "text" name = "userName" id="userName"></h2>
	 	<h2>登陆名称:<input type = "text" name = "loginName"  id = "loginName" value = ></h2>
	 	<h2>用户性别:
	 		<select name = "sex"  id = "sex">
	 			<option value = "1" >boy</option>
	 			<option value = "2" >girl</option> 	 		
	 		</select>	 	
	 	</h2>
	 	<h2>用户年龄:<input type = "text" name = "age" id = "age"></h2>
	 	<h2>出生日期:<input type = "text" name = "birthday" ></h2>
	 	
	 	<h2><input type = "submit" value = "保存" ></h2>
	 	<h2>
	 		<c:forEach items = "${errors}" var ="error">
	 			${error.defaultMessage}<br>
	 		</c:forEach>	
	 	
	 	</h2>
  </form>
</body>
</html>